package com.example.demo.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import lombok.Data;

/**
 * @author yg.zhao
 * @description 导入公共dto
 * @date 2022/12/13
*/
@Data
public class ExcelImportCommonDto {
    /**
     * 所在行
     */
    @ExcelIgnore
    private Integer rowIndex;

    /**
     * 错误信息
     */
    @ExcelIgnore
    private String errorMsg;


    public String toString(){
        final StringBuilder sb = new StringBuilder();
        sb.append("{")
                .append("\"rowIndex\":").append(rowIndex)
                .append(", \"errorMsg\":").append(errorMsg)
                .append('}');
        return sb.toString();
    }


}
